package com.heima.wemedia.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.dtos.WmChannelDto;
import com.heima.model.wemedia.pojos.WmChannel;

public interface WmChannelService extends IService<WmChannel> {
    // 查询所有的频道
    ResponseResult findAll();

    /**
     * 分页查询所有的频道
     * @param dto
     * @return
     */
    ResponseResult findPage(WmChannelDto dto);

    /**
     * 添加频道数据
     * @param wmChannel
     * @return
     */
    ResponseResult saveWmChannel(WmChannel wmChannel);

    /**
     * 根据id修改频道数据
     * @param wmChannel
     * @return
     */
    ResponseResult updateWmChannel(WmChannel wmChannel);

    /**
     * 根据Id删除频道数据
     * @param id
     * @return
     */
    ResponseResult deleteById(Integer id);
}
